//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_attachchemlight.sqf"
#include "x_setup.sqf"

private ["_cheml","_clight"];
_cheml = _this;

__TRACE_1("","_cheml");

_clight = _cheml createVehicle [0,0,0];

__TRACE_1("","_clight");
_clight attachTo [player, [0,-0.03,0.07], "LeftShoulder"]; 
player setVariable [QGVAR(p_clattached), _cheml];
player setVariable [QGVAR(p_clattachedobj), _clight];
player removeMagazine _cheml;
GVAR(commandingMenuIniting) = false;